99a23497a3367a551bbc773a91e93d9d03352a0b,QuickOpener/src/com/sessonad/quickopener/prefs/QuickOpenerPanel.java,QuickOpenerPanel,addFolderButtonActionPerformed,#java.awt.event.ActionEvent#,157

Before Change


//        }
       // if(toInsert){
            PrefsUtil.store("folder" + description, value);
            JOptionPane.showConfirmDialog(this, "Folder added as favorite.", "Folder added", JOptionPane.OK_OPTION);
        //}
    }//GEN-LAST:event_addFolderButtonActionPerformed

After Change


        description =description.replaceAll(" ", "_");
        String value = favoritePathTextField.getText();
        if(! checkValidFolder(value) || description.isEmpty()){
            if(description.isEmpty()){
                JOptionPane.showMessageDialog(this, "A description is mandatory.", "Description not valid", JOptionPane.OK_OPTION);
            }else{
                JOptionPane.showMessageDialog(this, "The folder specified is not valid or does not exists.", "Input not valid", JOptionPane.OK_OPTION);
            }
            return;
        }